/**
 * 功能描述 入住派车处理表单
 */
define(function (require, exports, module) {
	var Grid = require("grid")
    var instance = {
        initComponent: function (widget) {
        	var CarGrid = new Grid({
        		parentNode:"#checkInCar",
        		model:{
					allowAdd : false,
				columns: [{
       				name:"carDate",
       				label:"用车时间",
       				format:"date"
       			},{
       				name:"address",
       				label:"派车地址"
       			},{
       				name:"description",
       				label:"备注"
       			},{
       				name:"haveCar",
       				label:"是否派车",
       				format:function(value,row){
       					if(value){
       						return "是";
       					}else{
       						return "否";
       					}
       				}
       			},{
       				name:"driverName",
       				label:"司机姓名"
       			},{
       				name:"driverPhone",
       				label:"司机电话"
       			},{
			        name:"carType",
			        label:"型号"
			    },{
			        name:"carNumber",
			        label:"车牌号"
			     }]

				}
        	});
        	 widget.set("datilCarGrid", CarGrid);
        }
    };
    module.exports = instance;
});
